export interface LoginData {
  userName: string
  password: string
  captchaCode?: string
  requestId?: string // 验证码请求ID
}

export interface UserInfo {
  id: number
  userName: string
  realName?: string
  email?: string
  phone?: string
  avatar?: string
  roles: string[]
  permissions: string[]
}

export interface LoginResult {
  userId: number
  userName: string
  accessToken: string
  refreshToken: string
  expiresIn: number
  userInfo?: UserInfo
}

export interface ApiResponse<T = any> {
  code: number
  message: string
  data: T
  timestamp: number
}

// 验证码响应数据接口
export interface CaptchaResponse {
  requestId: string // 验证码请求ID
  captchaImage: string // Base64编码的验证码图片（包含data URI前缀）
}